﻿@using KXCXW.Web.CommonClass
@using KXCXW.Web.CommonClass.Ext
@using kxcxw.Data.Common
@using kxcxw.Data.Entities
<div class="content line_01">
    <ul>
        @{
            CommonRepositories comm = new CommonRepositories();
            List<PublichInformation> pifList = (List<PublichInformation>)ViewData["HotPop"];
            int i = 1;
            foreach (PublichInformation item in pifList)
            {
                var url = item.InfoType == 1 ? item.ShopUrl : Url.Action("ProductDetails", "Home", new { id = item.InformationID });
            <li>
                <div class="hot_order">
                    @i</div>
                <a href="@url" target="_blank" class="hot_proname @(item.InfoType == 1 ? "weburl" : "")" productId="@item.InformationID" title="@item.Title">@Html.Truncate(item.Title, 25)</a>
                <div class="hot_info">
                    发布人：<a href="@Url.Action("Other", "PublishInfo", new { userId = item.PublishID })" title="@comm.getUserById(item.PublishID).UserName">@Html.Truncate(comm.getUserById(item.PublishID).UserName, 4)</a>&nbsp;浏览：<span>@item.VisitsNumber</span>
                    次</div>
            </li>
              i++;
            }
        }
    </ul>
</div>
